// position:absolute 不会受其他对象位置影响 relative 会受其他对象位置影响,对象不可层叠设置位置 使用
// left ， right ， top ， bottom 等属性相对于其最接近的一个最有定位设置的父对象进行绝对定位.
function header(name){
	var str = "<div class=\"w\">";
	str += "<ul class=\"fl lh\">";
	str += "	<li>";
	str += "		<span style=\"position: absolute;left: 500px;\">";
	str += "			<a title=\"http://gz.gec-edu.org/?gzbdgzbdyueqianpc23\" href=\"http://gz.gec-edu.org/?gzbdgzbdyueqianpc23\"></a>";
	str += "		</span>";
	str += "	</li>";
	str += "</ul>";
	str += "<ul class=\"fr lh\">";
	if (name == null || name == "" || name.length == 0){
		str += "	<li>";
		str += "		<span>";
		str += "			<a href=\"login.do\">登录</a>";
		str += "			<a href=\"register.do\">注册</a>";
		str += "		</span>";
		str += "	</li>";
	}else{
		str += "	<li>";
		str += "		<span style='color:red;'>" + name;
		str += "		</span>：您好!&nbsp;&nbsp;";
		str += "		<a href=\"loginout.action\">退出</a>";
		str += "	</li>";
	}
	str += "    <li>&nbsp;<a href=\"ShowShopCarItem.action\">购物车</a></li>";
	str += "	<li>&nbsp;<a href=\"showOrder.action\"></a></li>";
	str += "	<li>";
	str += "		<span>";
	str += "			&nbsp;&nbsp;&nbsp;<a href=\"javascript:void(0);\" onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://gz.gec-edu.org/?gzbdgzbdyueqianpc23');\"></a>";
	str += "			<a href=\"javascript:window.external.addFavorite('','瑞士浪琴');\"></a>";
	str += "		</span>";
	str += "	</li>";
	str += "</ul>";
	str += "</div>";
	str += "</div>";
	//header bar
	str += "<div class=\"header\">";
	str += "<div class=\"top w960 center\">";
	str += "	<div class=\"toptitle\">";
	str += "	<h1>";
	str += "		<a style=\"logo_style\" title=\"瑞士浪琴\" href=\"index.action\"></a>";
	str += "		<a href=\"index.action\" title=\"瑞士浪琴\"><img alt=\"瑞士浪琴\" src=\"images/logo.gif\"></a>";
	str += "	</h1>";
	str += "</div>";
	str += "<div class=\"banner\">";
	str += "	<a title=\"瑞士浪琴\" href=\"javascript:void(0);\"></a>";
	str += "	<a title=\"瑞士浪琴\" href=\"index.action\">";
	str += "	<em>";
	str += "	<img height=\"80\" width=\"552\" alt=\"瑞士浪琴\" border=\"0\" src=\"images/banner.gif\">";
	str += "	</em></a>";
	str += "</div>";
	str += "<div class=\"rlink\">";
	str += "	<ul>";
	str += "		<li class=\"r3\">";
	str += "			<a title=\"关于我们\" href=\"abort.action\">关于我们</a>";
	str += "		</li>";
	str += "		<li class=\"r4\">";
	str += "			<a title=\"联系方式\" href=\"javascript:void(0);\">联系方式</a>";
	str += "		</li>";
	str += "	</ul>";
	str += "</div>";
	str += "</div>";
	document.write(str);
};
